package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.CarCheckView
import hlhj.fhp.checkpoint.javaBean.AddYearBean
import hlhj.fhp.checkpoint.javaBean.MyBaseBean
import hlhj.fhp.checkpoint.javaBean.YearLimitBean
import hlhj.fhp.checkpoint.module.CarCheckModule

/**
 * Created by Never Fear   on 2018\11\8 0008.
Never More....
 */
class CarCheckPresenter:BasePresenter<CarCheckModule,CarCheckView>(), CarCheckView {
    override fun createModule() {
        module=CarCheckModule()
        module?.listener=this
    }
    fun getYearLimit(c:Context){
        module?.getYearLoc(c)
    }
    fun addYear(plate_number:String,vin:String,engine_number:String,examine_date:String,owner_name:String,original_price:String,c:Context){
        module?.add(plate_number, vin, engine_number, examine_date, owner_name, original_price, c)

    }
    override fun addYearResp(myBaseBean: AddYearBean) {
        view?.addYearResp(myBaseBean)
    }

    override fun getYearLoc(yearLimitBean: YearLimitBean) {
        view?.getYearLoc(yearLimitBean)
    }
}